﻿using MahApps.Metro.Controls;
using System.Windows.Controls;
using NLog;

namespace Com.Lancetinc.Evs
{
    public class WindowBase : MetroWindow
    {
        public WindowBase()
        {
            this.TitleCharacterCasing = CharacterCasing.Normal;
            this.FontSize = (double)FindResource("FontSizeNormal");
            this.Loaded += WindowBase_Loaded;
            this.Closed += WindowBase_Closed;
        }

        private void WindowBase_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            LogManager.GetCurrentClassLogger().Info(this.GetType().Name + ".loaded");
        }

        private void WindowBase_Closed(object sender, System.EventArgs e)
        {
            LogManager.GetCurrentClassLogger().Info(this.GetType().Name + ".closed");
        }
    }
}